package com.car.slave.im.model;

public interface IMMessage {

	/**
	 * 用户的登录服务器.
	 */
	public static final int CMD_USER_LOGIN = 1001;

	/**
	 * 用户登出服务器.
	 */
	public static final int CMD_USER_LOGOUT = 1002;
	
	/**
	 * 聊天消息.
	 */
	public static final int CMD_USER_CHAT_MSG = 1003;
	
	/**
	 * 心跳.
	 */
	public static final int CMD_USER_KEEPLIVE = 1004;
	
	/**
	 * 踢出重复登录的用户.
	 */
	public static final int CMD_USER_KICK_USER_NOTIFY = 1005;

	/**
	 * 用户进入聊天框，服务器返回欢迎语.
	 */
	public static final int CMD_USER_ENTER_CHAT_WINDOW = 1007;
	
	/**
	 * 获取发送的byte[].
	 * @return
	 */
	public byte[] getSendBuffer();

}
